import { Pipe, PipeTransform } from '@angular/core';
import {DomSanitizer} from '@angular/platform-browser';

@Pipe({
  name: 'tohtml'
})
export class TohtmlPipe implements PipeTransform {
  constructor(private _sanitizer:DomSanitizer) {
  }
  transform(value: unknown, ...args: any[]): any {
    return this._sanitizer.bypassSecurityTrustHtml(<string> value);
  }

}
